package com.kancy.drools.learning.call.local;

import org.kie.api.KieServices;
import org.kie.api.runtime.KieContainer;
import org.kie.api.runtime.KieSession;

/**
 * <p>
 * LocalClient
 * <p>
 *
 * @author: kancy
 * @date: 2020/1/20 16:41
 **/

public class LocalClient {

    public static void main(String[] args) {
        KieServices kieServices = KieServices.Factory.get();
        KieContainer kieContainer = kieServices.getKieClasspathContainer();
        KieSession kieSession = kieContainer.newKieSession("session-name");
        kieSession.fireAllRules();
        kieSession.dispose();
    }
}
